package com.pan.creational.single.obj;

/**
 * 推荐用枚举的方式实现单例
 *
 */
public enum SingleEnumObject {
    INSTANCE;
    public void hello(){
        System.out.println("hello world!");
    }
}
